Optimal. Leaf size=85 \[ \frac {a \sin (c+d x)}{d}-\frac {a \csc ^3(c+d x)}{3 d}+\frac {2 a \csc (c+d x)}{d}+\frac {b \sin ^2(c+d x)}{2 d}-\frac {b \csc ^2(c+d x)}{2 d}-\frac {2 b \log (\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2837, 12, 766} \[ \frac {a \sin (c+d x)}{d}-\frac {a \csc ^3(c+d x)}{3 d}+\frac {2 a \csc (c+d x)}{d}+\frac {b \sin ^2(c+d x)}{2 d}-\frac {b \csc ^2(c+d x)}{2 d}-\frac {2 b \log (\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 766
Rule 2837
Rubi steps
\begin {align*} \int \cos (c+d x) \cot ^4(c+d x) (a+b \sin (c+d x)) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {b^4 (a+x) \left (b^2-x^2\right )^2}{x^4} \, dx,x,b \sin (c+d x)\right )}{b^5 d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(a+x) \left (b^2-x^2\right )^2}{x^4} \, dx,x,b \sin (c+d x)\right )}{b d}\\ &=\frac {\operatorname {Subst}\left (\int \left (a+\frac {a b^4}{x^4}+\frac {b^4}{x^3}-\frac {2 a b^2}{x^2}-\frac {2 b^2}{x}+x\right ) \, dx,x,b \sin (c+d x)\right )}{b d}\\ &=\frac {2 a \csc (c+d x)}{d}-\frac {b \csc ^2(c+d x)}{2 d}-\frac {a \csc ^3(c+d x)}{3 d}-\frac {2 b \log (\sin (c+d x))}{d}+\frac {a \sin (c+d x)}{d}+\frac {b \sin ^2(c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.15, size = 76, normalized size = 0.89 \[ \frac {a \sin (c+d x)}{d}-\frac {a \csc ^3(c+d x)}{3 d}+\frac {2 a \csc (c+d x)}{d}-\frac {b \left (-\sin ^2(c+d x)+\csc ^2(c+d x)+4 \log (\sin (c+d x))\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 117, normalized size = 1.38 \[ -\frac {12 \, a \cos \left (d x + c\right )^{4} - 48 \, a \cos \left (d x + c\right )^{2} + 24 \, {\left (b \cos \left (d x + c\right )^{2} - b\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) + 3 \, {\left (2 \, b \cos \left (d x + c\right )^{4} - 3 \, b \cos \left (d x + c\right )^{2} - b\right )} \sin \left (d x + c\right ) + 32 \, a}{12 \, {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 81, normalized size = 0.95 \[ \frac {3 \, b \sin \left (d x + c\right )^{2} - 12 \, b \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) + 6 \, a \sin \left (d x + c\right ) + \frac {22 \, b \sin \left (d x + c\right )^{3} + 12 \, a \sin \left (d x + c\right )^{2} - 3 \, b \sin \left (d x + c\right ) - 2 \, a}{\sin \left (d x + c\right )^{3}}}{6 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.38, size = 159, normalized size = 1.87 \[ -\frac {a \left (\cos ^{6}\left (d x +c \right )\right )}{3 d \sin \left (d x +c \right )^{3}}+\frac {a \left (\cos ^{6}\left (d x +c \right )\right )}{d \sin \left (d x +c \right )}+\frac {8 a \sin \left (d x +c \right )}{3 d}+\frac {\left (\cos ^{4}\left (d x +c \right )\right ) \sin \left (d x +c \right ) a}{d}+\frac {4 a \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )}{3 d}-\frac {b \left (\cos ^{6}\left (d x +c \right )\right )}{2 d \sin \left (d x +c \right )^{2}}-\frac {b \left (\cos ^{4}\left (d x +c \right )\right )}{2 d}-\frac {b \left (\cos ^{2}\left (d x +c \right )\right )}{d}-\frac {2 b \ln \left (\sin \left (d x +c \right )\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 69, normalized size = 0.81 \[ \frac {3 \, b \sin \left (d x + c\right )^{2} - 12 \, b \log \left (\sin \left (d x + c\right )\right ) + 6 \, a \sin \left (d x + c\right ) + \frac {12 \, a \sin \left (d x + c\right )^{2} - 3 \, b \sin \left (d x + c\right ) - 2 \, a}{\sin \left (d x + c\right )^{3}}}{6 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.91, size = 218, normalized size = 2.56 \[ \frac {23\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+15\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\frac {89\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{3}-2\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\frac {19\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{3}-b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {a}{3}}{d\,\left (8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+16\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\right )}+\frac {7\,a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,d}+\frac {2\,b\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24\,d}-\frac {b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,d}-\frac {2\,b\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________